package com.example.soa_exp2.Domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("re_request")
@Repository
@Schema(name = "归还器材记录实体类")
public class Return {
    @TableId
    @Schema(name = "归还记录id")
    private int re_rec_id;
    @Schema(name = "器材id")
    private String goods_id;
    @Schema(name = "器材名")
    private String goods_name;
    @Schema(name = "学生id")
    private String stu_id;
    @Schema(name = "学生姓名")
    private String stu_name;
    @Schema(name = "学生联系方式")
    private String stu_tel;
    @Schema(name = "归还数量")
    private Long re_num;
    @Schema(name = "归还时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date re_time;
    @Schema(name = "操作员账号")
    private String operator_account;

}
